import request from "@/request/request";
export function getOrders(userId,status,pageNum,pageSize){
    return request({
        url:`/order/list/`,
        method:"get",
        params:{
            userId:userId+'',
            status,
            pageNum,
            pageSize
        }
    })
}
export function deleteOrder(orderId){
    return request({
        url:`/order/delete/`+orderId,
        method:"delete"
    })
}
export function submitProductComments(form,orderId){
    return request({
        url:`/product/comments-submit/`,
        method:"post",
        data:form,
        params:{
          orderId:orderId+''
        }
    })
}